package com.itheima.hw.test3;

/**
 * 继承：抽取公共成员（属性+方法）
 */
public class Car {

    private String brand;
    private double price;


    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public void run(){
        System.out.println(brand+"的汽车开始运行...");
    }
}
